package com.zhang.zxx.boot.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhang.zxx.boot.common.base.MyPage;
import com.zhang.zxx.boot.entity.DO.SysLog;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * SysLogPageDTO:系统日志分页请求参数
 *
 * @author zhangxiaoxiang
 * @date 2021/12/12
 */
@Data
@ApiModel("SysLogPageDTO系统日志分页请求参数")
@EqualsAndHashCode(callSuper = true)
public class SysLogPageDTO extends MyPage<SysLog> {

      /**
       * 操作人员
       */
      @ApiModelProperty(value = "'操作人员'", example = "admin")
      private String operName;

      /**
       * 业务模块名称
       */
      @ApiModelProperty(value = "业务模块名称", example = "岗位管理接口:分页查询")
      private String businessName;

      /**
       * 方法名
       */
      @ApiModelProperty(value = "方法名", example = "方法名")
      private String method;


      /**
       * 创建时间
       */
      @ApiModelProperty(value = "创建时间", example = "2021-04-03 09:19:01")
      @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
      private Date createDate;
}
